/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021.
 * Description: support ubifs read only notifier
 * Author: douzhaolei
 * Create: 2021-09-15
 */

#ifndef __RTOS_STORAGE_HOOKS_H
#define __RTOS_STORAGE_HOOKS_H

#include <linux/notifier.h>
#include <linux/blkdev.h>
#ifdef CONFIG_RTOS_FS_DEADLOOP_NOTIFIER
int rtos_squashfs_error_notifier_register(struct notifier_block *nb_ptr);
int rtos_squashfs_error_notifier_unregister(struct notifier_block *nb_ptr);
int rtos_scsi_err_notifier_list_register(struct notifier_block *nb_ptr);
int rtos_scsi_err_notifier_list_unregister(struct notifier_block *nb_ptr);
void scsi_err_notifier(struct request *req);
#endif
#endif
